External Libraries

Some CygNet library objects and functions are available by default when scripting in CygNet Studio and the HSS, and some must be included as separate COM components.

Included Objects

Other Libraries

The inclusion of external libraries, CygNet or otherwise, is handled by the VBScript CreateObject method. This function requires that you know the library and object names. Some standard non-CygNet libraries that are useful in scripting are the file system object (CxScript.FileSystemObject) for accessing and writing to files, and XML parsers such as the Microsoft XML Document object (Msxml2.DOMDocument).

Example

The following example shows how to create a Facilities object.

Copy
Facilities object
Sub MyMethod()
 
    Dim objFacilities
    Set objFacilities = CreateObject("CxScript.Facilities")
 
    ... code ...
 
End Sub

See your CygNet system administrator to determine which CygNet libraries are available.